<template>
  <div class="jl_input">
    <div class="jl_input_item pr10">
      <em class="font_red" v-if="required">*</em>
      <textarea class="w12" :placeholder="placeholder" v-model="v"></textarea>
    </div>
  </div>
</template>

<script>
  export default {
    name: "jl-from-textarea",
    props: {
      value: {type: String},
      required: {
        type: Boolean,
        default: false
      },
      placeholder: {
        type: String,
        default: ''
      }
    },
    data() {
      return {
        v: ''
      }
    },
    watch: {
      v(n) {
        this.$emit('input', n)
      },
      value(n) {
        this.v = n
      }
    }
  }
</script>

<style scoped>
</style>
